package actions;

import bin.Mud;

public class InventoryDecider {
    private Mud mudWindow;

    public InventoryDecider(Mud mudWindow) {
        this.mudWindow = mudWindow;
    }

    public boolean isInventory() {
        return (mudWindow.getCommand().equals("INV") || mudWindow.getCommand().equals("INVENTORY"));
    }

    public void showInventory() {
        mudWindow.setReturnText("Your inventory:\n" + mudWindow.getPlayer().getPlayerInventoryString());
    }
}